package JLB_Chapter_11;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class WildClass {
    public static void main(String[] args) {
        List<String> List1 = new ArrayList<String>();
        List1.add("成员");
        List<?> List2 = List1;
        List<?> List3 = new LinkedList<Integer>();
        System.out.println("List1:" + List1.get(0));
        System.out.println("List2:" + List2.get(0));
        List1.set(0, "成员改变");
        // List2.add("添加");
        // List2.set(0, "成员改变");
        // List3.add(1);
        // List3.set(0, 1);
        System.out.println("List1:" + List1.get(0));
    }
}
